import Vue from 'vue'
import 'lib-flexible'
import App from './App.vue'
import {Button} from 'mint-ui'
import './validate'
import * as API from '@/api'
import i18n from './i18n'
import './filters'
import VueLazyload from 'vue-lazyload'
import router from './router'
import Header from "./components/Header/Header"
import store from './vuex/store'
import './mock/mock-server'

Vue.component(Button.name, Button)  // mt-button
// 将API对象挂载到Vue的原型对象上
Vue.prototype.$API = API

import loading from '@/assets/img/loading.gif'
Vue.use(VueLazyload,{
  loading
})
Vue.config.productionTip = false
Vue.component("Header",Header)
new Vue({
  render: h => h(App),
  store,
  i18n,
  router,//所有组件都能看到$router和$route <router-link>和</router-view>
}).$mount('#app')
